﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace asMeishi.web.Classes
{
    public class baseConfig
    {
        public List<string> siteThemePaths;

        public baseConfig() { 
                siteThemePaths = System.Configuration.ConfigurationManager.AppSettings["siteThemes"].Split(',').ToList<string>();
        }
        /// <summary>
        /// 设置theme，写入Session
        /// </summary>
        /// <param name="index"></param>
        public void setThemePathByIndex (int index){
            HttpContext.Current.Session["siteThemePath"] = siteThemePaths[index];
        }

        public static string siteThemePath
        {
            get {
                return HttpContext.Current.Session["siteThemePath"].ToString();
            }
        
       
        }
        public static Boolean allowHistory = true;

        

    }

}
